Release 10.1A: OpenEdge Development:
Progress 4GL Reference
SYSTEM-DIALOG COLOR statement
(Windows only; Graphical interfaces only)Displays a dialog box that lets the user choose and associate a system color with the specified dynamic color number. The SYSTEM-DIALOG COLOR statement provides a dialog box appropriate to the graphical environment in which it runs.
Note: Does not apply to SpeedScript programming.Syntax
color-numberAn integer expression that evaluates to a Progress color number from 0 to 255, inclusive, that is defined as dynamic through the SET-DYNAMIC method of the COLOR-TABLE handle. The color dialog associates the Progress color specified by
color-numberwith the system color value the user selects in the dialog box. The user chooses the OK button to confirm the choice. The user can close the dialog box without changing the color by choosing the Cancel button.UPDATElogical-variableSpecifies a logical variable to return the status of the user’s color dialog interaction. If the user chooses the OK button, the dialog sets
logical-variableto TRUE. If the user chooses the Cancel button, the dialog setslogical-variableto FALSE.IN WINDOWwindowSpecifies the window where the dialog box is displayed. The value
Examplewindowmust be the handle of a window.The following procedure displays a dialog box that allows the user to assign new foreground and background colors to the dialog box. A radio set in the dialog box lists selections for foreground and background that correspond to the numbers nine and eight, respectively. Choosing the OK button opens a color dialog box to assign a new system color to the selected color number. Note that the UPDATE option is not used to return a termination status because the dialog does not require the user to select a new color; it only provides the option. The procedure terminates when the user chooses the Cancel button in the radio selection dialog box.
Note that the trigger for the ok-button must assign the curr-color variable to obtain the latest value selected for the radio set. The GET-DYNAMIC and SET-DYNAMIC methods are used to ensure that the color is dynamic before modifying it.
Notes
- For more information on defining dynamic colors, see OpenEdge Deployment: Managing 4GL Applications .
- Use the
color-numberin a COLOR phrase to assign the selected color to a widget. For more information on assigning colors to widgets, see OpenEdge Development: Progress 4GL Handbook .See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |